package incontrol.core.weight;

import incontrol.core.group.Group;
import incontrol.core.protocol.IPluginRequest;
import incontrol.plugin.protocol.Channel;

import java.util.List;

import com.google.common.base.Objects;

@Channel(name = "/incontrol/request/weight")
public class WeightRequest implements IPluginRequest {

	private List<Group> groups;

	public WeightRequest(List<Group> groups) {
		this.groups = groups;
	}

	public List<Group> getGroups() {
		return groups;
	}

	@Override
	public String toString() {
		return Objects.toStringHelper(this)

		.add("groups", groups).toString();
	}

}
